const routes = [
  {
    path: '/humanAffairs',
    name: 'humanAffairs',
    redirect: '/humanAffairs/group',
    meta: {
      name: '人事' ,
      icon: '',
      pickIcon: '',
      order: 4,
      crumbs: ['人事']
    },
    children: [
      {
        path: 'group',
        name: 'group',
        meta: {
          name: '组织架构',
          href: '/humanAffairs/group',
          crumbs: ['人事','组织架构'],
        },
        component: () => import('@/view/page/HumanAffairs/Group.vue')
      },
      {
        path: 'archives',
        name: 'archives',
        meta: {
          name: '员工档案',
          crumbs: ['人事','员工档案'],
        },
        children: [
          {
            path: 'unemployed',
            name: 'unemployed',
            meta: {
              name: '求职员工',
              href: '/humanAffairs/archives/unemployed',
              crumbs: ['人事','员工档案','求职员工'],
            },
            component: () => import('@/view/page/HumanAffairs/Archives/Unemployed.vue')
          },
          {
            path: 'employed',
            name: 'employed',
            meta: {
              name: '在职员工',
              href: '/humanAffairs/archives/employed',
              crumbs: ['人事','员工档案','在职员工'],
            },
            component: () => import('@/view/page/HumanAffairs/Archives/Employed.vue')
          },
          {
            path: 'quit',
            name: 'quit',
            meta: {
              name: '离职员工',
              href: '/humanAffairs/archives/quit',
              crumbs: ['人事','员工档案','离职员工'],
            },
            component: () => import('@/view/page/HumanAffairs/Archives/Quit.vue')
          }
        ]
      },
    ]
  }
]

export default routes;